package com.liaowei.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liaowei.model.domain.ArticleUser;
import com.liaowei.model.param.ArticleCommentStatusParam;
import org.apache.ibatis.annotations.Param;

/**
* @author LindaMan
* @description 针对表【wy_article_user(文章-用户表)】的数据库操作Mapper
* @createDate 2023-05-06 23:31:37
* @Entity com.liaowei.article.model.domain.ArticleUser
*/
public interface ArticleUserMapper extends BaseMapper<ArticleUser> {

    // 更改评论状态
    int updateCommentStatus(ArticleCommentStatusParam commentStatusParam);
    // 查询用户的收藏状态
    Integer selectCollectStatus(@Param("articleId") Long articleId, @Param("userId") Long userId);
    // 查询用户的点赞状态
    Integer selectStarStatus(@Param("articleId") Long articleId, @Param("userId") Long userId);
    // 查询用户的评论状态
    Integer selectCommentStatus(ArticleCommentStatusParam commentStatusParam);
}




